#ifndef MAINWINDOW_HELP_H
#define MAINWINDOW_HELP_H

#include <QMainWindow>
#include <QCloseEvent>
#include <QFile>
#include <QTextStream>
#include <QTimer>

namespace Ui {
class MainWindow_help;
}

class MainWindow_help : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow_help(QWidget *parent = nullptr);
    ~MainWindow_help();

signals:
    void close_this();      // 关闭此窗口的信号

protected:
    void closeEvent(QCloseEvent* event);

private slots:
    void on_pushButton_ok_clicked();

    void put_focus();       // 将焦点交给按钮

private:
    Ui::MainWindow_help *ui;
    void read_file();       // 读入游戏帮助
    QTimer timer;
    bool start_game {false};
};

#endif // MAINWINDOW_HELP_H
